<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="master.html" />

<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
  <title>Add Record</title>
    <!--<script type="text/javascript" src="${tg.url('/js/jquery.selso.js')}"></script>  
    <script type="text/javascript" src="${tg.url('/js/jquery.comboselect.js')}"></script>-->
    <script type="text/javascript" src="${tg.url('/js/jquery.validate.js')}"></script>
    <script type="text/javascript" src="${tg.url('/js/jquery-ui-1.7.2.custom.min.js')}"></script>
    <!--<script type="text/javascript" src="${tg.url('/js/jquery-dynamic-form.js')}"></script>-->
    <!--<link rel="stylesheet" type="text/css" media="all" href="${tg.url('/css/jquery.comboselect.css')}" />-->
    <link rel="stylesheet" type="text/css" media="all" href="${tg.url('/css/jquery-ui.css')}" />
    <script type="text/javascript">
        $(document).ready(function(){
            /*  uncheck the checkbox which displays the full text upload field at load time
                otherwise this will be set to checked if there is e.g. a validation error */
            $("input:checkbox:checked").attr("checked", "");
        });
    </script>
</head>
<body>
<div class="grid_12">
    ${sidebar_left()}
    <div class="grid_9 omega">
        <div py:replace="tmpl_context.add_metadata_form(child_args=dict(parties_involved=dict(options=party_options)))">Form goes here</div>
    </div>
</div>

</body>
</html>
